//
//  BoardCell.swift
//  MSwift
//
//  Created by 马龙波 on 2017/10/31.
//  Copyright © 2017年 马龙波. All rights reserved.
//

import UIKit

class BoardCell: UITableViewCell {
    var my_label = UILabel()
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        // Configure the view for the selected state
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.selectionStyle = .none
        
        my_label = UILabel(frame: CGRect(x: kScreenW/2, y: 0, width: kScreenW/2-10, height: 30))
        my_label.text = "我是测试label"
        my_label.textColor = .green
        my_label.font = .systemFont(ofSize: 20)
        my_label.backgroundColor = .purple
        my_label.textAlignment = .right
        addSubview(my_label)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
